/* DesignerPage 京东风格结构化样式，保留原色彩 */

.designer-root {
  min-height: 100vh;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
}

.designer-navbar {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #e5e6eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  font-size: 18px;
  font-weight: 600;
  color: #222;
  z-index: 10;
}
.designer-navbar-left {
  font-size: 20px;
  font-weight: 700;
}
.designer-navbar-center {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}
.designer-navbar-right {
  min-width: 120px;
  text-align: right;
}

.designer-main {
  flex: 1;
  display: flex;
  min-height: 0;
}

.designer-sider {
  width: 280px;
  background: #fff;
  border-right: 1px solid #e5e6eb;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  max-width: 360px;
  z-index: 1;
}
.designer-sider-right {
  width: 320px;
  border-left: 1px solid #e5e6eb;
  border-right: none;
}

.designer-sider-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 16px 0 16px;
  border-bottom: 1px solid #e5e6eb;
  background: #fff;
}
.designer-tab-active {
  font-weight: 700 !important;
}

.designer-sider-panel {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px 8px 8px;
  background: #fafbfc;
}

.designer-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  min-width: 0;
}

.designer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.04);
  padding: 12px 24px;
  margin: 18px 0 0 0; /* 只保留顶部间距 */
  min-height: 56px;
}
.designer-page-name {
  width: 200px;
  margin-right: 16px;
}
.designer-toolbar-btns {
  display: flex;
  gap: 10px;
}

.designer-canvas-wrapper {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.08);
  margin: 12px 0 0 0; /* 顶部留一点间距 */
  padding: 0;
  min-height: 0;
  overflow: auto;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  height: 100%;
}

.designer-canvas {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: transparent;
}

.canvas-component {
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: absolute;
  transition: box-shadow 0.2s, border 0.2s, background 0.2s;
}

/* 组件选中高亮样式 */
.canvas-component-selected {
  border: 2px solid #1677ff !important;
  box-shadow: 0 0 8px #1677ff55;
  background: #e6f7ff;
  position: relative;
  z-index: 2;
}

/* 可选：左上角蓝色圆点角标 */
.canvas-component-selected::before {
  content: '';
  position: absolute;
  left: -8px;
  top: -8px;
  width: 12px;
  height: 12px;
  background: #1677ff;
  border-radius: 50%;
  box-shadow: 0 0 4px #1677ff99;
  border: 2px solid #fff;
  z-index: 3;
}

@media (max-width: 900px) {
  .designer-sider {
    width: 60px;
    min-width: 60px;
  }
  .designer-sider-right {
    width: 100px;
    min-width: 100px;
  }
  .designer-navbar {
    padding: 0 8px;
  }
  .designer-toolbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 8px;
  }
  .designer-canvas-wrapper {
    padding: 8px;
  }
} 